//控制层
app.controller('indexController' ,function($scope,loginService){

    //获取登录人名
    $scope.getLoginName=function(){
        loginService.getLoginName().success(
            function(response){
                $scope.loginName=response.username;
            }
        );
    }
});
